package com.example.common;

import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * Created by Tony Yao on 2017/7/19.
 */
public interface AbstractDao<T>{//公共dao接口
    void insert(T t)throws Exception;
    void delete(@Param("key") String ukfield, @Param("value") Object value)throws Exception;
    void update(T t)throws Exception;
    T select(@Param("key") String ukfield, @Param("value") Object value)throws Exception;
    boolean exsits(@Param("key") String ukfield, @Param("value") Object value)throws Exception;
    ArrayList<T> selectLike(@Param("kety") String key)throws Exception;
}
